home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1998 #3
/
Amiga Plus CD - 1998 - No. 3.iso
/
pd
/
spiele
/
progammon2.3
/
dicetests
/
dicetest5
< prev
Wrap
Text File
|
1997-12-08
|
1KB
|
31 lines
A pair of dice are being rolled 108 000 times to check for randomness.
This test takes about 33 seconds on a 68882 @ 33mhz. Each combination
should occur 1/36th of the time (i.e. 3000).
Test time = 32.49 seconds.
1 2 3 4 5 6
1 3071 3013 2961 3053 2990 3125
2 3052 3017 2963 2951 3029 2939
3 3036 2987 2918 2924 2884 2974
4 2968 3044 3062 2857 2990 3047
5 3012 3091 2990 3109 3038 3062
6 2983 2962 3000 2996 2925 2977
The same two times in a row. (i.e. 1/36 * 108 000)
Theory = 3000 Actual = 2992
Opposite but still the same two times in a row.
Theory = 3000 Actual = 3025
The same three times in a row. (i.e. 1/1296 * 108 000)
Theory = 83 Actual = 81
Doubles. (i.e. 1/6 of 108 000)
Theory = 18 000 Actual = 17878
Total of all rolls including doubles. (i.e. 8.167 * 108 000)
Theory = 882 000 Actual = 880018